package com.guli.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zxc
 * @date 2023/04/01 14:59
 **/
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
// 设置包扫描规则
@ComponentScan(basePackages = {"com.guli"})
@EnableDiscoveryClient // 允许当前微服务模块，能够被nacos注册中心所发现;
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class , args);
    }
}
